<?php

namespace app\admin\model\user;

use app\api\model\Base;


class User extends Base
{

    // 定义表名
    protected $name = 'user';


    public function getAvatarfullAttr($value,$data){
        return config('setting.domain_prefix').config('setting.image_prefix').'avatar/'.$data['avatar'];
    }

    public function getList($where=array()){
        return self::field('*, avatar as avatarfull')->where($where)->order($this->order)->paginate($this->limit, false);
    }

}